﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace SLRT.dao.data
{
    public class Letter
    {
        private String letterName;
        private FileInfo dirPath;
        private List<DBImage> dbImages;

        /**
         * Class contructor. The name argument is a specifier.
         * The url argument must specify an relative adress on the pshysical memory.
         *
         * @param  url  an relative adress on the pshysical memory giving the base location of the folder where all the images for the required letter are contained
         * @param  name the name of the letter
         */
        public Letter(String name, FileInfo path)
        {
            this.letterName = name;
            this.dirPath = path;
            this.dbImages = null;
        }

        public List<DBImage> DBImages
        {
            get { return dbImages; }
            set { dbImages = value; }
        }

        /**
         * Returns the name of the this Letter
         * @return    Returns an String object
         *
         */
        public String LetterName
        {
            get { return letterName; }
        }

        /**
         * Returns the the relative path of this letter's images.
         * @return      Returns an String object.
         *
         */
        public FileInfo DirPath
        {
            get { return dirPath; }
        }
    }
}
